package com.cdu.ai_intelligent_teaching_and_training_system.service;

import com.cdu.ai_intelligent_teaching_and_training_system.entity.UserAnsweredQuestion;
import com.cdu.ai_intelligent_teaching_and_training_system.mapper.UserAnsweredQuestionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserAnsweredQuestionService {
    @Autowired
    private UserAnsweredQuestionMapper userAnsweredQuestionMapper;

    public List<UserAnsweredQuestion> getTop10ByExamId(Integer examId) {
        return userAnsweredQuestionMapper.selectTop10ByExamId(examId);
    }
} 